<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/lib/layui-v2.5.5/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/css/public.css}" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">
    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input type="text" name="mobilePhone" lay-verify="required" maxlength="11" lay-reqtext="不能为空" placeholder="请输入手机号" value="" class="layui-input" th:value="${model.mobilePhone}">
            <tip>填写手机号。</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" name="username"  maxlength="15"  placeholder="请输入用户名" value="" class="layui-input" th:value="${model.username}" >
            <tip>填写用户名。</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-block">
            <input type="text" name="email"  maxlength="40" placeholder="请输入邮箱" value="" class="layui-input" th:value="${model.email}" >
            <tip>填写邮箱。</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">昵称</label>
        <div class="layui-input-block">
            <input type="text" name="nickName"  maxlength="15"  placeholder="请输入昵称" value="" class="layui-input" th:value="${model.nickName}" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="trueName"  maxlength="10"  placeholder="请输入姓名" value="" class="layui-input" th:value="${model.trueName}"  >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">头像</label>
        <div class="layui-input-block">
            <input type="text" name="headSculpture"  maxlength="100"  placeholder="请输入头像" value="" class="layui-input" th:value="${model.headSculpture}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">头像预览</label>
        <div class="layui-input-block">
            <img th:src="${model.httpHeadSculpture}" th:width="240" th:height="220">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">证件照正面</label>
        <div class="layui-input-block">
            <input type="text" name="idcardImg1"  maxlength="100"  value="" class="layui-input" th:value="${model.idcardImg1}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">证件照正面</label>
        <div class="layui-input-block">
            <img th:src="${model.httpIdcardImg1}" th:width="240" th:height="220">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">证件照背面</label>
        <div class="layui-input-block">
            <input type="text" name="idcardImg2"  maxlength="100"  value="" class="layui-input" th:value="${model.idcardImg2}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">证件照背面</label>
        <div class="layui-input-block">
            <img th:src="${model.httpIdcardImg2}" th:width="240" th:height="220">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">证件号码</label>
        <div class="layui-input-block">
            <input type="text" name="idCard"  maxlength="30"  placeholder="请输入证件号码" value="" class="layui-input" th:value="${model.idCard}" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">证件类型</label>
        <div class="layui-input-block" th:if="${model.idcardType eq null}" >
            <select  lay-search="">
                <option value="" selected>请选择</option>
                <option value="1" >身份证</option>
                <option value="2">护照</option>
                <option value="3">海外</option>
            </select>
        </div>
        <div class="layui-input-block" th:if="${model.idcardType eq 1}" >
            <select  lay-search="">
                <option value="">请选择</option>
                <option value="1" selected>身份证</option>
                <option value="2">护照</option>
                <option value="3">海外</option>
            </select>
        </div>
        <div class="layui-input-block" th:if="${model.idcardType eq 2}" >
            <select  lay-search="">
                <option value="">请选择</option>
                <option value="1" >身份证</option>
                <option value="2" selected>护照</option>
                <option value="3">海外</option>
            </select>
        </div>
        <div class="layui-input-block" th:if="${model.idcardType eq 3}" >
            <select  lay-search="">
                <option value="">请选择</option>
                <option value="1" >身份证</option>
                <option value="2" >护照</option>
                <option value="3" selected>海外</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">实名状态</label>
        <div class="layui-input-block" th:if="${model.trueNameStatus eq 1}">
            <input type="radio" name="trueNameStatus" value="1" title="已实名" checked="">
            <input type="radio" name="trueNameStatus" value="0" title="未实名">
        </div>
        <div class="layui-input-block" th:if="${model.trueNameStatus eq 0}">
            <input type="radio" name="trueNameStatus" value="1" title="已实名" >
            <input type="radio" name="trueNameStatus" value="0" title="未实名" checked="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block" th:if="${model.sex eq 1}">
            <input type="radio" name="sex" value="1" title="男" checked="">
            <input type="radio" name="sex" value="0" title="女">
        </div>
        <div class="layui-input-block" th:if="${model.sex eq 0}">
            <input type="radio" name="sex" value="1" title="男" >
            <input type="radio" name="sex" value="0" title="女" checked="">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">个性签名</label>
        <div class="layui-input-block">
            <input type="text" name="personalizedSignature"  maxlength="50"  placeholder="请输入个性签名" value="" class="layui-input" th:value="${model.personalizedSignature}"  >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">店铺状态</label>
        <div class="layui-input-block" th:if="${model.isShop eq 0}" >
            <input type="radio" name="isShop" value="1" title="是">
            <input type="radio" name="isShop" value="0" title="否" checked="">
        </div>
        <div class="layui-input-block" th:if="${model.isShop eq 1}" >
            <input type="radio" name="isShop" value="1" title="是" checked="" >
            <input type="radio" name="isShop" value="0" title="否" >
        </div>
        <div class="layui-input-block" th:if="${model.isShop eq null}" >
            <input type="radio" name="isShop" value="1" title="是">
            <input type="radio" name="isShop" value="0" title="否" checked="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员状态</label>
        <div class="layui-input-block" th:if="${model.isVip eq 0}" >
            <input type="radio" name="isVip" value="1" title="是">
            <input type="radio" name="isVip" value="0" title="否" checked="">
        </div>
        <div class="layui-input-block" th:if="${model.isVip eq 1}" >
            <input type="radio" name="isVip" value="1" title="是" checked="" >
            <input type="radio" name="isVip" value="0" title="否" >
        </div>
        <div class="layui-input-block" th:if="${model.isVip eq null}" >
            <input type="radio" name="isVip" value="1" title="是">
            <input type="radio" name="isVip" value="0" title="否" checked="">
        </div>
    </div>
</div>
<script th:src="@{/lib/layui-v2.5.5/layui.js}" charset="utf-8"></script>
<script>
    layui.use(['form'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.$;

    });
</script>
</body>
</html>